home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 46
/
Amiga Format CD46 (1999-10-20)(Future Publishing)(GB)[!][issue 1999-12].iso
/
-in_the_mag-
/
reader_requests
/
scilab
/
man
/
man-part1
/
cat3
/
getvalue.3
< prev
next >
Wrap
Text File
|
1999-09-16
|
2KB
|
133 lines
getvalue(1) Scilab Function getvalue(1)
NAME
getvalue - xwindow dialog for data acquisition
CALLING SEQUENCE
[ok,x1,..,x11]=getvalue(desc,labels,typ,ini)
PARAMETERS
desc : column vector of strings, dialog general comment
labels
: n column vector of strings, labels(i) is the label of the ith
required value
typ : list(typ1,dim1,..,typn,dimn)
typi
: defines the type of the ith value, may have the following values:
"mat"
: for constant matrix
"col"
: for constant column vector
"row"
: for constant row vector
"vec"
: for constant vector
"str"
: for string
"lis"
: for list
dimi
: defines the size of the ith value it must be a integer or a 2-
vector of integer, -1 stands for undefined dimension
ini : n column vector of strings, ini(i) gives the suggested response for
the ith required value
ok : boolean ,%t if ok button pressed, %f if cancel button pressed
xi : contains the ith value if ok=%t
DESCRIPTION
This function encapsulate x_mdialog function with error checking, evalua-
tion of numerical response, ...
REMARKS
All valid expressions can be used as answers; for matrices and vectors get-
values automatically adds [ ] around the given answer before numeric
evaluation.
EXAMPLE
labels=["magnitude";"frequency";"phase "];
[ok,mag,freq,ph]=getvalue("define sine signal",labels,...
list("vec",1,"vec",1,"vec",1),["0.85";"10^2";"%pi/3"])
SEE ALSO
x_mdialog, x_matrix, x_dialog
AUTHOR
S. Steer